package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 微信小程序分类页模板实体类
 */
@Getter
@Setter
@TableName("yoshop_wxapp_category")
@Schema(description = "微信小程序分类页模板实体")
public class WxappCategory {

    @TableId(value = "category_id", type = IdType.AUTO)
    @Schema(description = "分类ID")
    private Long categoryId;

    @TableField("category_name")
    @Schema(description = "分类名称")
    private String categoryName;

    @TableField("is_delete")
    @TableLogic
    @Schema(description = "软删除标记")
    private Integer isDelete;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
} 